]> dgit.raspbian.org Git - gnome-shell.git/commit
search: Activate SearchResult from the result itself
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 16 Oct 2019 00:23:22 +0000 (02:23 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 16 Oct 2019 10:27:49 +0000 (12:27 +0200)
commit6533690fff4d01e3f3f1f12facbf820b075553ce
treef54524a00c51714b78dbd7f108f47867d1a1aa6f
parentd0d1845bb64cb55858ffc010e5a21e8ff0a7cf77
search: Activate SearchResult from the result itself

Search result views can include also objects that are not inheriting from
SearchResults (such as the AppIcon) that has not any 'activate' signal, to
connect to. Since we want to enforce a more formal interface, we want to
have just a simpler requirement as an activate() method.

So, instead using the 'activate' signal in SearchResult to activate a result
via SearchResultsBase just implement activate() in the result.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/765
js/ui/search.js